<?php
/**
 * Created by PhpStorm.
 * User: yzr
 * Date: 1/26/2021
 * Time: 10:46
 */
return [
    'typeList'  => [
        'job'   => [
            'disk'  => 'upload',
            'path'  => 'job',

            'fileSize'  => 1024 * 1024 * 10,
            'fileExt'   => ['jpg','png','jpeg','gif'],
            'fileMime'  => null,
            'image' => null,
        ],

        'jobtake'   => [
            'disk'  => 'upload',
            'path'  => 'jobtake',

            'fileSize'  => 1024 * 1024 * 10,
            'fileExt'   => ['jpg','png','jpeg','gif'],
            'fileMime'  => null,
            'image' => null,
        ],

        'avatar'   => [
            'disk'  => 'upload',
            'path'  => 'avatar',

            'fileSize'  => 1024 * 1024 * 10,
            'fileExt'   => ['jpg','png','jpeg'],
            'fileMime'  => null,
            'image' => null,
        ],

        'default'   => [
            'disk'  => 'default',
        ],
    ],
    'diskToDomain'  => [
        'upload'    =>  \think\facade\Request::domain() . '/uploads',

        'default'   => \think\facade\Request::domain(),
    ],

    'thumbTypeToSuffix' => [    // 缩略图类型对于的后最
        'avatar'    =>  '-ava',
        'job'    =>  '-job',
    ],

    'thumbSuffixList' => [    // 缩略图后缀对应的尺寸
        '-ava'  => [
            'width'     => 100,
            'height'    => 100,
        ],
        '-job'  => [
            'width'     => 100,
            'height'    => 100,
        ],
    ],
];
